import request from '@/config/axios'

export const assetPassExportExcel = async (params) => {
  return await request.download({
    url: '/amp/asset-message-pass/export-excel',
    params
  })
}
export const assetPassExportExcelFile = async (params) => {
  return await request.download({
    url: '/amp/asset-message-pass/export-excel-file',
    params
  })
}

export const getDataBasePassList = async (params) => {
  return await request.getOriginal({
    url: '/amp/asset-message-pass/page',
    params
  })
}

export const assetMessagePassDelete = async (id) => {
  return await request.delete({
    url: '/amp/asset-message-pass/delete?id=' + id
  })
}
export const assetMessagePassBatchDelete = async (data) => {
  return await request.delete({
    url: '/amp/asset-message-pass/batchDelete',
    data
  })
}

export const assetMessagePassUpdateAndAudit = async (data) => {
  return await request.put({
    url: '/amp/asset-message-pass/updateAndAudit',
    data
  })
}

// 批量保存并提交审核
export const assetMessagePassUpdateAndAuditBatch = async (data) => {
  return await request.put({
    url: '/amp/asset-message-pass/updateAndAuditBatch',
    data
  })
}

export const assetMessagePassDownload = async (params) => {
  return await request.download({
    url: '/amp/asset-message-pass/download',
    params
  })
}

export const assetMessagePassUpdateBatchNum = async (data) => {
  return await request.putOriginal({
    url: '/amp/asset-message-pass/updateBatchNum',
    data
  })
}
